package top.ochiamalu.aioj.service;

import top.ochiamalu.aioj.domain.entity.Thumb;
import com.baomidou.mybatisplus.extension.service.IService;
import top.ochiamalu.aioj.enums.ThumbTypeEnum;

/**
 * 点赞服务
 *
 * @author ochiamalu
 * @date 2025/03/07
 */
public interface ThumbService extends IService<Thumb> {

    /**
     * 点赞
     *
     * @param targetId 目标id
     * @param type     类型
     * @return {@link Boolean }
     */
    Boolean thumb(Long targetId, ThumbTypeEnum type);
}
